package pyip.lib.javalearn.classloader.init;

public class CLInit {
	public static void main(String args[]) {
		System.out.println(CLInit.B.value);
	}
	
	static class B {
		static int value = 100;
		static {
			// 会输出
			System.out.println("Class B is initialized. ");
		}
	}

	static class A extends B {
		static {
			// 不会输出
			System.out.println("Class A is initialized. ");
		}
	}
}
